xen/arm: p2m: Correctly initialize cur_offset
authorJulien Grall <julien.grall@linaro.org>
Wed, 1 Oct 2014 15:13:41 +0000 (16:13 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 2 Oct 2014 12:53:24 +0000 (13:53 +0100)
commitfb61d8fd8e50d0233e12d2e22d1ddb41af03e5db
tree7a9cac484344e927da8b20d2fab5005a41ecdfae
parent61fdda7acf3de11f3d50d50e5b4f4ecfac7e0d04
xen/arm: p2m: Correctly initialize cur_offset

{~0,} only initializes the first cell of the array to ~0. The other cells
are initialized to 0.

Explicitly initialize every cells of the array and, at the same time, do the
same for the mappings.

This is fixing boot after 82985d7 "xen: arm: handle variable p2m levels
in apply_p2m_changes" on platform where the root-level doesn't have
concatenate table (such as the Foundation Model).

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/p2m.c